GtkDialog: Update suggested-action more carefully
authorMatthias Clasen <mclasen@redhat.com>
Thu, 24 Apr 2014 05:32:50 +0000 (01:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Apr 2014 02:11:53 +0000 (22:11 -0400)
commit66b6078ae20bfbd0023ec5982cb154a4547ece7b
treea755982290a95331e28af80d4c9fe31d699da494
parent90559a3fc58c50e76a591716264c67f520fba4b6
GtkDialog: Update suggested-action more carefully

We were not really handling all cases correctly here. We want
the suggested-action style class to only be set on headerbar
buttons, and it should be set on the default widget. Ensure
this by syncing the suggested-action style class with the
default style class. As a side-effect, setting has-default
on an action widget in ui files will now have the expected
effect.

https://bugzilla.gnome.org/show_bug.cgi?id=728846
gtk/gtkdialog.c